package com.lucene.blog.db.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lucene.blog.bean.BlogType;
import com.lucene.blog.db.mapper.BlogTypeMapper;
import com.lucene.blog.db.service.BlogTypeService;

@Service("blogTypeService")
public class BlogTypeServiceImpl implements BlogTypeService {

	@Resource
	private BlogTypeMapper blogTypeMapper;
	
	public List<BlogType> getBlogTypeData() throws SQLException {
		return blogTypeMapper.getBlogTypeData();
	}

	public BlogType findBlogTypeById(Integer Id) throws SQLException {
		return blogTypeMapper.findBlogTypeById(Id);
	}

	public List<BlogType> getBlogTypeList(Map<String, Object> map) throws SQLException {
		return blogTypeMapper.getBlogTypeList(map);
	}

	public Long getTotal(Map<String, Object> map) throws SQLException {
		return blogTypeMapper.getTotal(map);
	}

	public Integer addBlogType(BlogType blogType) throws SQLException {
		return blogTypeMapper.addBlogType(blogType);
	}

	public Integer updateBlogType(BlogType blogType) throws SQLException {
		return blogTypeMapper.updateBlogType(blogType);
	}

	public Integer deleteBlogTypeById(Integer id) throws SQLException {
		return blogTypeMapper.deleteBlogTypeById(id);
	}

}
